package com.qiqidream.admin.system.model.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import com.qiqidream.admin.common.base.BaseEntity;
import com.qiqidream.admin.common.entity.AuthJson;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * 系统管理-角色表
 * @author QiQiDream
 * @since 2019/11/18 10:53
 */
@Data
public class RoleDto {

	@ApiModelProperty(value = "主键ID")
	private Long id;

	@ApiModelProperty(value = "角色编码")
	@NotBlank(message = "角色编码不能为空")
	@Length(max = 20, message = "角色编码不能超过20个字符")
	private String code;

	@ApiModelProperty(value = "角色名称")
	@NotBlank(message = "角色名称不能为空")
	private String name;

	@ApiModelProperty(value = "角色描述")
	private String remark;
}
